﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Common.Framework.GlobalEntities;
using System.Web.Mvc;

namespace ProductsGUI.Core
{
    public static class ExtentionMethods
    {
        public static SelectList ToSelectList(this LookupTableDTO lookupTable)
        {
            SelectList selectList = new SelectList(lookupTable.Values, "Key", "Value" );
           
            return selectList;
        }
    }
}